package ioc05;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author：汤小洋
 * Date：2023-12-13 15:26
 * Description：<描述>
 */
public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("ioc05/spring.xml");
        System.out.println(ac.getBean("springBean") == ac.getBean("springBean"));

        // 销毁容器
        // ac.registerShutdownHook();

    }
}
